package top.someapp.dxf2dsvg.kits;

import javax.annotation.Nonnull;

/**
 * @author zwz
 * Created on 2020-04-20
 */
public class Numbers {
    private Numbers() {
        // prevent outer new instance
    }

    public static float floatValue(String from) {
        return Float.valueOf(from);
    }

    public static int[] intValues(@Nonnull String from, char separator) {
        String[] split = from.split(Character.toString(separator));
        int[] values = new int[split.length];
        for (int i = 0, len = split.length; i < len; i++) {
            values[i] = Integer.valueOf(split[i]);
        }
        return values;
    }
}
